public class Point {
    int x, y;

    // 默认构造函数
    public Point() {
        this.x = 0;
        this.y = 0;
    }

    // 带参数的构造函数
    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }

    // 拷贝构造函数
    public Point(Point p) {
        this.x = p.x;
        this.y = p.y;
    }
}
